|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.boaframework.OutcomeSpace
public class OutcomeSpace
This class generates the complete outcome space and is therefore useful if someone wants to quickly implement an agent. Note that while this outcomespace is faster upon initialization, the sorted outcomespace class is faster during the negotiation.
| Field Summary | |
|---|---|
protected java.util.List<BidDetails> |
allBids
List of all possible bids in the domain |
protected UtilitySpace |
utilitySpace
Reference to the utility space |
| Constructor Summary | |
|---|---|
OutcomeSpace(UtilitySpace utilSpace)
Creates an unsorted outcome space. |
|
| Method Summary | |
|---|---|
void |
generateAllBids(UtilitySpace utilSpace)
Generates all the possible bids in the domain |
java.util.List<BidDetails> |
getAllOutcomes()
|
BidDetails |
getBidNearUtility(double utility)
gets a BidDetails which is closest to the given utility |
java.util.List<BidDetails> |
getBidsinRange(Range range)
Returns a list of bids (from possibleBids) that have a utility within the given range. |
int |
getIndexOfBidNearUtility(double utility)
|
BidDetails |
getMaxBidPossible()
|
BidDetails |
getMinBidPossible()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected UtilitySpace utilitySpace
protected java.util.List<BidDetails> allBids
| Constructor Detail |
|---|
public OutcomeSpace(UtilitySpace utilSpace)
utilSpace - | Method Detail |
|---|
public void generateAllBids(UtilitySpace utilSpace)
utilSpace - public java.util.List<BidDetails> getAllOutcomes()
public java.util.List<BidDetails> getBidsinRange(Range range)
range - in which the bids must be found.
public BidDetails getBidNearUtility(double utility)
utility - to which the found bid must be closest.
public BidDetails getMaxBidPossible()
public BidDetails getMinBidPossible()
public int getIndexOfBidNearUtility(double utility)
utility - to which the found bid must be closest.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||